import { App } from 'vue'
import {
  PieChartOutlined,
  DesktopOutlined,
  TeamOutlined,
  FileOutlined,
  UserOutlined,
  CloseOutlined,
  SettingOutlined,
  MenuOutlined,
  AppstoreOutlined,
  GiftOutlined,
  WechatOutlined,
  ToolOutlined,
  ShoppingCartOutlined,
  UsergroupAddOutlined
} from '@ant-design/icons-vue'

const icons = [
  PieChartOutlined,
  DesktopOutlined,
  TeamOutlined,
  FileOutlined,
  UserOutlined,
  CloseOutlined,
  SettingOutlined,
  UserOutlined,
  TeamOutlined,
  MenuOutlined,
  AppstoreOutlined,
  GiftOutlined,
  WechatOutlined,
  ToolOutlined,
  ShoppingCartOutlined,
  UsergroupAddOutlined
]
function registerIcon(app: App) {
  icons.forEach((item) => {
    app.component(item.displayName, item)
  })
}

export { registerIcon }
